/**
 * 
 */
package il.ac.bgu.cs.heuristics.core;

import il.ac.bgu.cs.heuristics.graph.types.IState;

/**
 * @author haro
 * 
 */
public class SameInitGoalPairException extends RuntimeException {
	IState	init;
	IState	goal;
	int		hValue;
	int		numberOfPairInList;

	public SameInitGoalPairException(IState init, IState goal, int hValue,
			int numberOfPairInList) {
		super();
		this.init = init;
		this.goal = goal;
		this.hValue = hValue;
		this.numberOfPairInList = numberOfPairInList;
	}

	@Override
	public String toString() {
		StringBuffer bf = new StringBuffer();
		bf.append("Init state was:\n");
		bf.append(init.toString());
		bf.append("\nGoal state was:\n");
		bf.append(goal.toString());
		return bf.toString();
	}

	public int getEstimateHvalue() {
		return numberOfPairInList;

	}
}
